/**
 * Created by kurry on 2017/8/7.
 */
import request from '../utils/request';
import {BACKEND_URL} from '../utils/constants'
//获取所有的menu
export function fetchMenu() {
  return  request(BACKEND_URL + `/live/courseClass/getcourseGroupList`);
}

//获取一个组别的所有系列
export function fetchOneGroupInfo(id) {
  return  request(BACKEND_URL + `/live/courseClass/getList?courseId=${id}`);
}

//获取一个组别的所有系列
export function fetchLiveVideo(id) {
  return  request(BACKEND_URL + `/live/courseClass/getList?courseId=${id}`);
}

//获取一个组别的所有系列
export function fetchMyClass(unionid) {
  return  request(BACKEND_URL + `live/user/getMyCourseList?unionid=${unionid}`);
}

